//
//  Uility.m
//  pte
//
//  Created by xiaojian chen on 3/22/16.
//  Copyright © 2016 陈无忌. All rights reserved.
//

#import "Uility.h"

@implementation Uility


+ (void) store_cached_value:(NSString *)key Value:(NSObject*)value
{
    
    
    
    NSUserDefaults			*defaults = [NSUserDefaults standardUserDefaults];
    
    [defaults setObject: value forKey: key];
    [defaults synchronize];
    
    
    
}

+ (void) remove_cached_value:(NSString*)key
{
    
    
    NSUserDefaults			*defaults = [NSUserDefaults standardUserDefaults];
    [defaults removeObjectForKey:key];
    [defaults synchronize];
    
    
    
}

+ (NSObject *) get_cached_value:(NSString*)key
{
    NSUserDefaults			*defaults = [NSUserDefaults standardUserDefaults];
    return [defaults objectForKey: key];
    
    
}

@end
